import request from '@/utils/request'

// 查询添加企业列表
export function listOutPark(query) {
  return request({
    url: '/system/outPark/list',
    method: 'get',
    params: query
  })
}

// 查询添加企业详细
export function getOutPark(id) {
  return request({
    url: '/system/outPark/' + id,
    method: 'get'
  })
}

// 新增添加企业
export function addOutPark(data) {
  return request({
    url: '/system/outPark',
    method: 'post',
    data: data
  })
}

// 修改添加企业
export function updateOutPark(data) {
  return request({
    url: '/system/outPark',
    method: 'put',
    data: data
  })
}

// 删除添加企业
export function delOutPark(id) {
  return request({
    url: '/system/outPark/' + id,
    method: 'delete'
  })
}

// 导出添加企业
export function exportOutPark(query) {
  return request({
    url: '/system/outPark/export',
    method: 'get',
    params: query
  })
}
